home *** CD-ROM | disk | FTP | other *** search
- CHAR(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- CCHHAARR, IICCHHAARR - Converts integer to character and vice versa
-
- SSYYNNOOPPSSIISS
- CCHHAARR(([II==]_i,, [KKIINNDD==]_k_i_n_d))
-
- IICCHHAARR(([CC==]_c))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- CCHHAARR and IICCHHAARR are inverse functions.
-
- CCHHAARR converts an integer or Boolean argument to a character specified
- by the ASCII collating sequence. IICCHHAARR converts a character argument
- to an integer based on the character position in the collating
- sequence.
-
- These intrinsic functions accept the following arguments:
-
- _i Must be of type integer or Boolean. If of type integer, _i
- must be in the range 0 <= _i <= 255.
-
- _k_i_n_d An integer scalar value. Must be a scalar integer
- initialization expression. This argument is not accepted by
- the MIPSpro Fortran 77 compiler.
-
- _c Must be of type character and of length one.
-
- The type conversion routines assign the appropriate type to Boolean
- arguments without shifting or manipulating the bit patterns they
- represent. For example, CCHHAARR(_i) returns the _ith character in the
- collating sequence.
-
- CCHHAARR and IICCHHAARR are elemental functions. The names of these intrinsics
- cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- For CCHHAARR, the result is a character of length one. If the _k_i_n_d
- parameter is present, the kind type parameter is that specified by
- _k_i_n_d. Otherwise the kind type parameter is that of the default
- character type. The result is the character in position _i of the
- ASCII collating sequence associated with the specified kind type
- parameter.
-
- IICCHHAARR returns type default integer. For IICCHHAARR, the result is the
- position _c in the collating sequence associated with the kind type
- parameter of _c and is in the range 0 <= IICCHHAARR((_c)) <= 255. For any
- characters CC and DD capable of being represented, CC ..LLEE.. DD is true if
- and only if IICCHHAARR ((CC)) ..LLEE.. IICCHHAARR((DD)) is true and CC ..EEQQ.. DD is true if
- and only if IICCHHAARR((CC)) ..EEQQ.. IICCHHAARR((DD)) is true.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-